#ifndef STREAMINGSERVER
#define STREAMINGSERVER

#include <cstdlib>
#include <iostream>
#include <boost/bind.hpp>
#include <boost/asio.hpp>

#include <network\streamingConnection.h>

class streamingServer {
  
  boost::asio::io_service& io_service_;
  tcp::acceptor acceptor_;

public:

  streamingServer(boost::asio::io_service& io_service, short port);
  void handle_accept(streamingConnection* new_connection, const boost::system::error_code& error);

};

#endif

/*
#ifndef STREAMINGSERVER
#define STREAMINGSERVER

#include <Poco/Util/ServerApplication.h>
#include <Poco/Util/Option.h>
#include <Poco/Util/OptionSet.h>
#include <Poco/Util/HelpFormatter.h>
#include <Poco/Net/StreamSocket.h>
#include <Poco/Net/ServerSocket.h>
#include <Poco/Net/TCPServer.h>
#include <Poco/Net/TCPServerConnection.h>
#include <Poco/Net/TCPServerConnectionFactory.h>
#include <Poco/Net/TCPServerParams.h>

using Poco::Util::Option;
using Poco::Util::OptionSet;
using Poco::Util::HelpFormatter;
using Poco::Net::ServerSocket;
using Poco::Net::StreamSocket;
using Poco::Net::TCPServerConnectionFactory;
using Poco::Net::TCPServer;
using Poco::Net::TCPServerParams;

#define MAX_THREADS 20

class streamingServer : public Poco::Util::ServerApplication {

  Poco::Net::TCPServerParams *server_params;

public:

  streamingServer(): _helpRequested(false)	{
	}
	
	~streamingServer()	{
	}

protected:

  void initialize(Application& self);
	void uninitialize();

  void defineOptions(OptionSet& options);
  void handleOption(const std::string& name, const std::string& value);

  void displayHelp();

  int main(const std::vector<std::string>& args);
	
private:

	bool _helpRequested;

};

#endif
*/